//
//  ConvenientReusableView.m
//  hnGovernment
//
//  Created by 安仔 on 17/2/27.
//  Copyright © 2017年 安仔. All rights reserved.
//

#import "ConvenientReusableView.h"

@implementation ConvenientReusableView

- (instancetype) initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        
        self.lineImg = [[UIImageView alloc] init];
        self.lineImg.clipsToBounds = YES;
        [self addSubview:self.lineImg];
        [self.lineImg mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self.mas_left).offset(42*m6Scale);
            make.centerY.mas_equalTo(self.mas_centerY);
            make.size.mas_equalTo(CGSizeMake(6*m6Scale, 32*m6Scale));
        }];
        
        self.titleLab = [[UILabel alloc] init];
        self.titleLab.textColor = [UIColor colorWithHexString:@"666666"];
        self.titleLab.font = [UIFont systemFontOfSize:28*m6Scale];
        self.titleLab.text = @"123";
        [self addSubview:self.titleLab];
        [self.titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self.lineImg.mas_right).offset(10*m6Scale);
            make.centerY.mas_equalTo(self.mas_centerY);
        }];
    }
    return self;
}

@end
